package com.personal.website.lottery.web.service;

import com.personal.website.lottery.web.model.Article;

import java.util.List;

/**
 * Created by 10171225 on 2016/2/18.
 */
public interface ArticleService {
    public void insertArticle(Article article);
    public List<Article> getArticles(int num);
    public List<Article> getArticles(String text, int num);
    public Article selectArticleById(int id);

    public List<Article> getIssuedArticlesByUserId(int userId, int num);

    public List<Article> getCommentedArticlesByUserId(int userId, int num);
    public boolean updateArticle(Article article);
    public boolean deleteArticle(int id);

    List<Article> getReviewedArticles(int num);

    List<Article> getUnReviewedArticles(int num);
}
